package com.ruoyi.patrol.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 专项检查对象 pt_check_record
 *
 * @author Du
 * @date 2023-11-18
 */
public class PtCheckRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 检查类型id
     */
    @Excel(name = "检查类型id")
    private Long checkId;

    /**
     * 学校id
     */
    @Excel(name = "学校id")
    private Long schoolId;

    /**
     * 学校名称
     */
    @Excel(name = "学校名称")
    private String schoolName;

    /**
     * 填报时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "填报时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date answerDate;

    /**
     * 是否填报（0:未填 1:已填）
     */
    @Excel(name = "是否填报", readConverterExp = "0=:未填,1=:已填")
    private String status;

    /**
     * 填报人
     */
    private String informant;

    private PtCheckType checkType;


    /**
     * 删除标志（0代表存在 1代表删除）
     */
    private String delFlag;

    public String getInformant() {
        return informant;
    }

    public void setInformant(String informant) {
        this.informant = informant;
    }

    public PtCheckType getCheckType() {
        return checkType;
    }

    public void setCheckType(PtCheckType checkType) {
        this.checkType = checkType;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setCheckId(Long checkId) {
        this.checkId = checkId;
    }

    public Long getCheckId() {
        return checkId;
    }

    public void setSchoolId(Long schoolId) {
        this.schoolId = schoolId;
    }

    public Long getSchoolId() {
        return schoolId;
    }

    public void setAnswerDate(Date answerDate) {
        this.answerDate = answerDate;
    }

    public Date getAnswerDate() {
        return answerDate;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return "PtCheckRecord{" +
                "id=" + id +
                ", checkId=" + checkId +
                ", schoolId=" + schoolId +
                ", schoolName='" + schoolName + '\'' +
                ", answerDate=" + answerDate +
                ", status='" + status + '\'' +
                ", informant='" + informant + '\'' +
                ", checkType=" + checkType +
                ", delFlag='" + delFlag + '\'' +
                '}';
    }
}
